export default {
    MODELS_LIST_SIZE: 20,
    ACCOUNTS_LIST_SIZE: 20,
    ROLES_LIST_SIZE: 20,
    AGENTS_LIST_SIZE: 20,
    USER_LIST_SIZE: 20,
    EXHIBITION_LIST_SIZE: 20,
    BANNER_LIST_SIZE: 20,
    ORDER_LIST_SIZE: 20,
    AGENTS_REGISTER_LIST_SIZE: 20,
    AGENTS_PURCHASE_LIST_SIZE: 20,
    ARTIST_LIST_PAGE_SIZE: 20,
    ARTWORK_LIST_PAGE_SIZE: 20,
    VERSION_LIST_PAGE_SIZE: 20,
    EXHIBITION_LIST_PAGE_SIZE: 20,
    GALLERY_LIST_PAGE_SIZE: 20,
    FOLDER_LIST_PAGE_SIZE: 50,
    SOCIAL_LIST_PAGE_SIZE: 20,
    PERSONAL_LIST_PAGE_SIZE: 20,
    SINGLE_STATISTICS_PAGE_SIZE: 6,
    ARTWORK_VIDEO_TYPE: 2,
    SINGLE_STATISTICS_PAGE_SIZE_PHONE: 20,
    USER_NOT_LOGIN_ERROR_CODE: 1001,
    USER_NOT_PERMISSION: 406,
    USER_NOT_FOUND_PAGE: 403,
    USER_NOT_LOGIN: 401,
    USER_TYPE_ARTIST_STATE: 1,//艺术家
    USER_IDENTITY_2: 2,//美术馆
    USER_IDENTITY_3: 3,//画廊
    USER_IDENTITY_4: 4,//收藏家
    LOGIN_STATUS_DAY_TIME: 35,
    MIN_OVERDUE_DAY_TIME: 30,
    RECORD_INVITE_DATE: 1 / 8,
    CN_COUNTRY_CODE: '+86',
    COMPANY_CONTACT: '020-38673181',
    COMPANY_CONTACT_EMAIL: 'artvrofart@artinvr.cn',
    // ALIYUN_URL: '//artivr.oss-cn-shenzhen.aliyuncs.com/',
    ALIYUN_URL: '//image.artivr.com/',
    REGISTER_HASH: '#register',
    CREATE_HASH: '#create',
    ACCOUNT_HASH: '#account',
    PRODUCTION_LOCATION: 'www',
    //个人主页的hash
    INTRODUCE_HASH: '#introduce',
    PUBLISH_HASH: '#publish',
    COLLECT_HASH: '#collect',
    ARTIST_HASH: '#artist',
    FOCUS_HASH: '#focus',
    FANS_HASH: '#fans',
    ARTWORK_FILE_SIZE: 10,//MB
    VERSION_FILE_SIZE: 20,//MB
    ARTWORK_VIDEO_FILE_SIZE: 300,//MB
    QRCODE_OVER_TIME: 10,//二维码过期时间
    CUSTOM_PRODUCT_CODE: 'YWM201807000',
    TRIAL_PRODUCT_CODE: 'YWM201807001',
    CHILD_PRODUCT_CODE: 'YWM201807002',
    ARTIST_PRODUCT_CODE: 'YWM201807003',
    GALLERY_PRODUCT_CODE: 'YWM201807004',
    ROLE_ACTIVE_STATE: 'S0C',
    ACCOUNT_ACTIVE_STATE: 1,
    EMAIL: 'artvrofart@artinvr.cn',//MB
    WECHAT_PAY: 'wechat_pay',
    ALI_PAY: 'ali_pay',
    ORDER_SUCCESS_STATE: 'S0C',
    ORDER_ERROR_STATE: 'S0X',
    ORDER_PREPAY_STATE: 'S0A',
    VIP_TYPE: 1,
    BAIDUOS_URL: '//tsn.baidu.com/text2audio',
    WECHAT_REDIRECT: '//test.vrofart.com',
    PRODUCT_WEB_SOCKET_CONNECT: 'stomp-p.artivr.com',
    TEST_WEB_SOCKET_CONNECT: 'stomp.artivr.com',
    STAGING_HREF_ORIGIN: 'https://staging.artivr.com',
    WWW_HREF_ORIGIN: 'https://www.artivr.com',
    SUCCESS_CODE: 200,
    WEIXIN_APPID: 'wx1a4883418f767e15',
    WEIXIN_PHONE_APPID: 'wxc243ffb9fefbaf9f',
    ARTWORK_TYPE_LIST: type(),
    ARTWORK_YEAR_LIST: year(),
    ARTWORK_ALL_YEAR_LIST: year(true),
    ARTWORK_ALL_TYPE_LIST: type(true),
    SUCCESS_TEXT: 'success',
    ERROR_TEXT: 'error',
    WARNING_TEXT: 'warning',
};

function year(flag) {
    let arr = flag ? [{value: '', label: '全部'}] : [];
    let time = new Date().getFullYear();
    for (let i = time; i > 1800; i--) {
        arr.push({value: i, label: i});
    }
    return arr;
}

function type(flag) {
    let type = ['油画', '丙烯', '水彩', '雕塑', '国画', '版画', '综合材料', '壁画', '漆画', '素描', '数码绘画', '摄影', '新媒体'
        , '装置', '行为艺术', '陶瓷艺术', '书法篆刻', '衍生品', '其他类别'];
    let arr = flag ? [{value: '', label: '全部'}] : [];
    for (let i = 0; i < type.length; i++) {
        arr.push({value: type[i], label: type[i]});
    }
    return arr;
}